package testes;

import br.com.mumakgnod.engine.GameGridJPanel;
import br.com.mumakgnod.engine.GameObject;

public class TestColisao {

	
	public static void main(String[] args) {
		GameGridJPanel grid = new GameGridJPanel();
		grid.setSize(300,300);
		
		GameObject obj1 = new GameObject(grid, 100, 100, 10, 10);
		GameObject obj2 = new GameObject(grid, 80, 100, 10, 10);
		GameObject obj3 = new GameObject(grid, 120, 100, 10, 10);
		GameObject obj4 = new GameObject(grid, 100, 80, 10, 10);
		GameObject obj5 = new GameObject(grid, 100, 120, 10, 10);
		GameObject obj6 = new GameObject(grid, 105, 105, 10, 10);
		GameObject obj7 = new GameObject(grid, 110, 110, 10, 10);
		
		
		System.out.println("obj1 colide com obj2: "+obj1.hasCollide(obj2));
		System.out.println("obj1 colide com obj3: "+obj1.hasCollide(obj3));
		System.out.println("obj1 colide com obj4: "+obj1.hasCollide(obj4));
		System.out.println("obj1 colide com obj5: "+obj1.hasCollide(obj5));
		System.out.println("obj1 colide com obj6: "+obj1.hasCollide(obj6));
		System.out.println("obj1 colide com obj7: "+obj1.hasCollide(obj7));
	}
}
